 abstract class Shape{
    //抽象方法
    public  abstract  void draw();
}
abstract class Cycle extends Shape {
    //重写抽象方法



 }
 class A extends Cycle {
     @Override
     public void draw() {
         System.out.println("A!");
     }
 }
class Flower extends Shape {
 @Override
     public void draw() {
         System.out.println("❀！");
    }
}
class Rect extends Shape{
    @Override
    public void draw(){
        System.out.println("⬜! ");
    }
}
 public class Test {
     public static void drawMap(Shape shape) {
         shape.draw();
     }

     public static void main(String[] args) {
         //Shape shape = new Shape();
         drawMap(new Rect());
//         drawMap(new Cycle());
         drawMap(new Flower());

         Shape shape = new Rect();
     }
 }